package com.airnews.ticket.util;

import java.util.ArrayList;

import android.graphics.Color;
import android.os.Build;

import com.airnews.ticket.R;
import com.airnews.ticket.model.City;
import com.airnews.ticket.model.Menu;

public final class Constants {
	
	public static final String BASE_URL = "http://113.108.186.130:7002/MOService/api";//业务接口地址
	
	
	public static final String RESULT_OK = "00";
	
	public static final String USER_AGENT = Build.MODEL;
	
	
	public static final String CLASS_NAME = "className";


	public static final String DOWNLOAD_DIR = "download";

	public static final String SUB_IMG_DIR = "img";
	
	/*主菜单*/
	public static final ArrayList<Menu> MAIN_MENU_LIST = new ArrayList<Menu>();
	
	public static final ArrayList<City> CITY_LIST = new ArrayList<City>();
	
	
	/*列表的颜色 
	 * 用法：View.setBackgroundColor(LIST_COLORS[position % LIST_COLORS.length]);*/
	public static int[] LIST_COLORS = {Color.rgb(14 * 16 + 10, 15 * 16 + 4, 15 * 16 + 14),
								 Color.rgb(12 * 16 + 11, 14 * 16 + 3, 15 * 16 + 15)};
	
	
	static {
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_flight, "订机票"));
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_jiudian, "订酒店"));
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_my_order, "我的订单"));
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_login, "登陆"));
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_person, "客户管理"));
		MAIN_MENU_LIST.add(new Menu(R.drawable.icon_setting, "设置"));
		
		
		CITY_LIST.add(new City("001", "北京", "热门城市"));
		CITY_LIST.add(new City("001", "广州", null));
		CITY_LIST.add(new City("001", "上海", null));
		CITY_LIST.add(new City("001", "深圳", null));
		                                   
		CITY_LIST.add(new City("001", "AA1", "A"));
		CITY_LIST.add(new City("001", "AA2", null));
		CITY_LIST.add(new City("001", "AA3", null));
		CITY_LIST.add(new City("001", "AA4", null));
		                                  
		CITY_LIST.add(new City("001", "bb1", "B"));
		CITY_LIST.add(new City("001", "bb2", null));
		CITY_LIST.add(new City("001", "bb3", null));
		CITY_LIST.add(new City("001", "bb4", null));
		
		CITY_LIST.add(new City("001", "bb1", "C"));
		CITY_LIST.add(new City("001", "bb2", null));
		CITY_LIST.add(new City("001", "bb3", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
		CITY_LIST.add(new City("001", "bb4", null));
	}
}
